Finding the N-th Largest Element
نویسندگان
چکیده
We describe an algorithm for selecting the n-th largest element (where 0 < < 1), from a totally ordered set of n elements, using at most (1 + (1 + o(1))H())n comparisons, where H() is the binary entropy function and the o(1) stands for a function that tends to 0 as tends to 0. For small values of this is almost the best possible as there is a lower bound of about (1 + H())n comparisons. The algorithm obtained beats the global 3n upper bound of Schh onhage, Paterson and Pippenger for < 1=3.
منابع مشابه
Relative n-th non-commuting graphs of finite groups
Suppose $n$ is a fixed positive integer. We introduce the relative n-th non-commuting graph $Gamma^{n} _{H,G}$, associated to the non-abelian subgroup $H$ of group $G$. The vertex set is $Gsetminus C^n_{H,G}$ in which $C^n_{H,G} = {xin G : [x,y^{n}]=1 mbox{~and~} [x^{n},y]=1mbox{~for~all~} yin H}$. Moreover, ${x,y}$ is an edge if $x$ or $y$ belong to $H$ and $xy^{n}eq y^{n}x$ or $x...
متن کاملHow to select the largest k elements from evolving data?
In this paper we investigate the top-k-selection problem, i.e. determine the largest, second largest, ..., and the k-th largest elements, in the dynamic data model. In this model the order of elements evolves dynamically over time. In each time step the algorithm can only probe the changes of data by comparing a pair of elements. Previously only two special cases were studied [2]: finding the l...
متن کاملA note on mobiusien function and mobiusien inversion formula of fibonacci cobweb poset
The Fibonacci cobweb poset P has been introduced by A.K.Kwaśniewski in [3, 4] for the purpose of finding combinatorial interpretation of fibonomial coefficients and their reccurence relation. At first the partially ordered set P (Fibonacci cobweb poset) was defined via its Hasse diagram as follows: It looks like famous rabbits grown tree but it has the specific cobweb in addition, i.e. it consi...
متن کاملThe First Ascent into the Incidence Algebra of the Fibonacci Cobweb Poset
The explicite formulas for Möbius function and some other important elements of the incidence algebra are delivered. For that to do one uses Kwaśniewski’s construction of his Fibonacci cobweb poset in the plane grid coordinate system. 1 Fibonacci cobweb poset The Fibonacci cobweb poset P has been invented by A.K.Kwaśniewski in [1, 2, 3] for the purpose of finding combinatorial interpretation of...
متن کاملRanking the Trading Symbols of the Largest Companies Listed in the Tehran Stock Exchange Based on the Probability of Informed Trade Criteria
I n this paper, trading symbols of the 30 largest companies listed in the Tehran Stock Exchange (TSE) were ranked based on the asymmetry information risk. Using the Ersan and Alici (2016) modified clustering algorithm (EA), we estimated the probability of informed trading (PIN) to measure the asymmetry information among traders for each trading symbol and trading day through two-year...
متن کامل